package com.hnx.admin.aurora.captcha.api;

public interface CaptchaAPI {
    public static final String NO_NOISE_IMPL = "com.google.code.kaptcha.impl.NoNoise";
    public static final String SHADOW_GIMPY_IMPL = "com.google.code.kaptcha.impl.ShadowGimpy";
    /**
     * 验证码 redis key
     */
    public static final String CAPTCHA_CODE_KEY = "captcha_codes:";
    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 2;
    default String captchaKey(String uuid){
        return CAPTCHA_CODE_KEY + uuid;
    }
}
